package com.pxmeta.converter;

import com.pxmeta.statistics.UvStatistic;
import com.pxmeta.statistics.bo.UvStatisticBO;

import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author shoushen.luan
 * @since 2022-10-20
 */
@Service
public class UvStatisticConverter {
    public UvStatistic convertFromUvStatisticBO(UvStatisticBO statisticBO) {
        UvStatistic uvStatistic = new UvStatistic();
        uvStatistic.setServerHost(statisticBO.getServerHost());
        uvStatistic.setStatDate(statisticBO.getStatDate());
        uvStatistic.setAccessCount(statisticBO.getAccessCount());
        uvStatistic.setCreateTime(new Date());
        return uvStatistic;

    }
}
